{% for post in posts %}
    <div class="post">
        <h3>
            <a href="{{ post.get_absolute_url }}">{{ post.title|title }}</a>
            <small>{{ post.created_at|date:"d F Y" }}</small>
        </h3>

        <pre>{{ post.content|capfirst|truncatewords_html:30 }}</pre>

        <small>Tag :
            <a href="{{ post.category.get_absolute_url }}">{{ post.category.name }}</a>
        </small>
    </div>
    {% if not forloop.last %}<hr />{% endif %}
{% empty %}
    <div class="well">
        <h4>There is not yet the post for this category.</h4>
    </div>
{% endfor %}

{% include 'blog/_pagination.html' %}